<script setup>
import request from '@/utils/request'
const test = (content) => {
  request.post('api/letter/is-legal', {
    content: content
  })
}

const f = async () => {
  await test(document.querySelector('input').value)
}
const func = async () => {
  await f()
}
</script>
<template>
  <input type="text" />
  <button @click="func">推送</button>
</template>
